﻿namespace Sustainalytics.ESG.Entities
{
    public class RPAssessment
    {
        public int Id { get; set; }
        public string Name { get; set; }

        public override bool Equals(object obj)
        {
            if (obj == null || GetType() != obj.GetType())
                return false;

            RPAssessment p = (RPAssessment)obj;
            return (Id == p.Id) && (Name == p.Name);
        }

        public override int GetHashCode()
        {
            unchecked
            {
                int hashCode = Id.GetHashCode();
                hashCode = (hashCode * 397) ^ Name.GetHashCode();
                return hashCode;
            }
        }
    }
}
